<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>豆瓣网列表页</title>
    <style>
        body{ width: 600px; margin: 0 auto; 
        }
        h1{ color: blueviolet; text-align: center;}
        a{ background-color: rgb(35, 140, 205);
           color: white;
           text-decoration: none;
           border-radius: 7px;
           padding: 3px 5px;
        }
        table{ width: 600px;}
        table,tr,td{ border: 2px solid black; border-collapse: collapse;}
        td{ line-height: 30px; text-align: center;}
        .cN{ background-color: rgb(35, 140, 205);
             color: white;
             font-size: 15px;
             font-weight: bold;
            }
    </style>
</head>
<body>
        <h1>欢迎使用豆瓣网</h1>
        <p>
            <a href="/" >首页</a> <a href="/list">电影类型列表</a> <a href="/addKindsOfMovie" >添加电影类型</a>
            <a href="/addMovie" >添加电影</a>
            <a href="/bar" target="_blank" >查看柱状图</a>
            <a href="/pie" target="_blank" >查看饼状图</a>
        </p>

        <table>
            <tr class="cN"><td>编号</td><td>电影名称</td><td>上映时间</td><td>分数</td><td>类型名称</td><td>操作</td></tr>
            {% for i in info %}
            <tr>
                <td>{{i[0]}}</td><td>{{i[1]}}</td><td>{{i[2]}}</td><td>{{i[3]}}</td><td>{{i[4]}}</td>
                <td><a href="/updateMovie/{{i[0]}}" >修改</a> 
                    <a href="/deleteMovie/{{i[0]}}" >删除</a>
                </td>
            </tr>
            {% endfor %}
        </table>
</body>
</html>